﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;

namespace Technoera.Common.QueryModel.Basic
{
    public class BasicQueryExpressionTree : IQueryExpressionTree
    {
        public BasicQueryExpressionTree(EntityNode rootEntityNode)
        {
            RootEntityNode = rootEntityNode;
        }

        public BasicQueryExpressionTree() { }

        public EntityNode RootEntityNode { get; set; }

        private IList<SortingRule> _sortingRules;
        public virtual IList<SortingRule> SortingRules
        {
            get
            {
                if (_sortingRules == null)
                    _sortingRules = new Collection<SortingRule>();

                return _sortingRules;
            }
            protected set
            {
                _sortingRules = value;
            }
        }
	
    }
}
